package com.glacier.yuyuan.modules.admin.sys.mapper;

import com.glacier.common.core.mapper.TreeMapper;
import com.glacier.yuyuan.modules.admin.sys.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * date 2022-11-10 12:11
 * 菜单
 *
 * @author glacier
 * @version 1.0
 */
public interface MenuMapper extends TreeMapper<Menu> {

    /**
     * 根据用户id 查询菜单
     * @param userId
     * @return
     * @param <ID>
     */
    <ID extends Serializable> List<Menu> findListByUserId(@Param("userId") ID userId);
}
